/*
 *  Author: zhaijl 
 *  Url: http://218.1.73.212/down.php
 *  Country: China
 *  
 * ====================================================================
 *
 *  Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  See the NOTICE file distributed with
 *  this work for additional information regarding copyright ownership.
 *  The ASF licenses this file to You under the Apache License, Version 2.0
 *  (the "License"); you may not use this file except in compliance with
 *  the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * ====================================================================
 *
 * This software based apache mina 2.0 and spring 3.0
 *
 */
package org.cloudy.http.codec;

import java.util.Map;
import java.util.HashMap;

public class ContentType {
	private static final Map < String, String > CONTENT_TYPE = new HashMap < String, String > () ;
	public static String get ( String key ) {
		return CONTENT_TYPE.get ( key ) ;
	}
	static {
		CONTENT_TYPE.put ( ".html", "text/html" );  	
		CONTENT_TYPE.put ( ".htm", "text/html"	);  
		CONTENT_TYPE.put ( ".shtm", "text/html"	);  
		CONTENT_TYPE.put ( ".shtml",	"text/html"	);  
		CONTENT_TYPE.put ( ".css", "text/css" );  
		CONTENT_TYPE.put ( ".js", "application/x-javascript" );	
		CONTENT_TYPE.put ( ".ico", "image/x-icon" ); 	
		CONTENT_TYPE.put ( ".gif", "image/gif"	);  
		CONTENT_TYPE.put ( ".jpg", "image/jpeg" );  
		CONTENT_TYPE.put ( ".jpeg", "image/jpeg" );  
		CONTENT_TYPE.put ( ".png", "image/png"	);  
		CONTENT_TYPE.put ( ".svg", "image/svg+xml" );  
		CONTENT_TYPE.put ( ".torrent",	"application/x-bittorrent" );	
		CONTENT_TYPE.put ( ".wav", "audio/x-wav" );  
		CONTENT_TYPE.put ( ".mp3", "audio/x-mp3" );  
		CONTENT_TYPE.put ( ".mid", "audio/mid" );  	
		CONTENT_TYPE.put ( ".m3u", "audio/x-mpegurl" ); 	
		CONTENT_TYPE.put ( ".ram", "audio/x-pn-realaudio" ); 
		CONTENT_TYPE.put ( ".ra", "audio/x-pn-realaudio" ); 
		CONTENT_TYPE.put ( ".doc", "application/msword" ); 
		CONTENT_TYPE.put ( ".exe", "application/octet-stream" );	
		CONTENT_TYPE.put ( ".zip", "application/x-zip-compressed" );
		CONTENT_TYPE.put ( ".xls", "application/excel" ); 	
		CONTENT_TYPE.put ( ".tgz", "application/x-tar-gz" ); 
		CONTENT_TYPE.put ( ".tar", "application/x-tar" ); 	
		CONTENT_TYPE.put ( ".gz", "application/x-gunzip" ); 
		CONTENT_TYPE.put ( ".arj", "application/x-arj-compressed" );	
		CONTENT_TYPE.put ( ".rar", "application/x-arj-compressed" );	
		CONTENT_TYPE.put ( ".rtf", "application/rtf" );  
		CONTENT_TYPE.put ( ".pdf", "application/pdf" );  
		CONTENT_TYPE.put ( ".swf", "application/x-shockwave-flash" );
		CONTENT_TYPE.put ( ".mpg", "video/mpeg" );  	
		CONTENT_TYPE.put ( ".mpeg", "video/mpeg" );  	
		CONTENT_TYPE.put ( ".asf", "video/x-ms-asf" );  
		CONTENT_TYPE.put ( ".avi", "video/x-msvideo" );  
		CONTENT_TYPE.put ( ".bmp", "image/bmp" );
	}
}